const path = require('path');

module.exports = {
    entry: './main.js',
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'dist')
    },
    resolve: {
        extensions: ['.js', '.proto']
    },
    module: {
        rules: [
            {
                test: /\.proto$/,
                use: 'protobufjs-loader'
            }
        ]
    }
};